<?php

namespace app\admin\controller;
use think\Validate;

class Index
{
    /**
     * 后台登录页面
     * @return \think\response\View
     */
    public function index()
    {
        return view('admin@index/login');
    }

    public function dologin()
    {
        var_dump($_POST);
        $rules = [
            'name' => 'require|max:25',
            'age' => 'number|between:1,120',
        ];
    }

}
